webkit 滚动条自定义

Author Avatar
wanglinzhizhi Jan 21, 2017

webkit 滚动条自定义

::-webkit-scrollbar {
width: 10px!important;
height: 10px!important;
-webkit-appearance: none;
}
::-webkit-scrollbar-thumb {
height: 5px;
border: 1px solid transparent;
border-top: none;
border-bottom: none;
-webkit-border-radius: 6px;
background-color: rgba(0,0,0,.3);
background-clip: padding-box;
}